<template>
	<view class="module-block" v-if="addtime">
		<view class="order-date-info">
			<view class="item" v-if="addtime">
				<view class="label">下单时间</view>
				<view class="info">{{ addtime }}</view>
			</view>			
			<view class="item" v-if="paytime">
				<view class="label">支付时间</view>
				<view class="info">{{ paytime }}</view>
			</view>
			<view class="item" v-if="paysource">
				<view class="label">支付方式</view>
				<view class="info">{{ paysource }}</view>
			</view>
			<view class="item" v-if="finishtime">
				<view class="label">完成时间</view>
				<view class="info">{{ finishtime }}</view>
			</view>
			<view class="item" v-if="applytime">
				<view class="label">申请退款</view>
				<view class="info">{{ applytime }}</view>
			</view>
			<view class="item" v-if="saleman">
				<view class="label">销售员</view>
				<view class="info">{{ saleman }}</view>
			</view>
			<view class="item" v-if="verify_admin">
				<view class="label">核销员</view>
				<view class="info">{{ verify_admin }}</view>
			</view>
		</view>
	</view>
</template>
<script>
	/**
	 * 订单详情下单时间
	 * 
	 */
	export default {
		name: 'stOrderDate',
		props: {
			ordersn: {
				type: [Number, String],
				default: ""
			},
			addtime:{
				type: [Number, String],
				default: ""
			},
			paytime:{
				type: [Number, String],
				default: ""
			},
			finishtime:{
				type: [Number, String],
				default: ""
			},
			applytime:{
				type: [Number, String],
				default: ""
			},
			refundtime:{
				type: [Number, String],
				default: ""
			},
			paysource:{
				type: [Number, String],
				default: ""
			},
			saleman:{
				type: String,
				default: ""
			},
			verify_admin:{
				type: String,
				default: ""
			}
		},
		data() {
			return {

			};
		},
		methods: {}
	}
</script>
<style lang="scss" scoped>
	.module-block {
		padding: 0 24rpx;
		margin-bottom: 20rpx;
	}
	.order-date-info {
		padding: 28rpx 24rpx;
		border-radius: 20rpx;
		background-color: $uni-bg-color;
		.item{
			@extend .alignItems;
			line-height: 1.833;
			font-size: $uni-font-size-sm;
			color: $uni-text-color-grey;
			margin-bottom: 16rpx;
            &:last-child{
				margin-bottom: 0;
			}
			.label {
				width: 150rpx;
			}
		}
	}
</style>
